package com.bridgeintelligent.tag.engine.es.query;

import com.bridgeintelligent.tag.engine.api.Filter;
import com.bridgeintelligent.tag.engine.es.query.condition.ConditionStrategy;
import org.elasticsearch.index.query.QueryBuilder;

/**
 * Created by JackCheung on 2019/10/14 4:46 PM.
 */
public class EsConditionBuilder {

    /**
     * @param filter filter
     * @return 根据filter创建QueryBuilder
     */
    public static QueryBuilder choseFilterType(Filter filter) {
        return ConditionStrategy.create(filter);
    }
}
